/**
 * 
 */
package info.niwota.webapp;

import info.niwota.commons.Debug;
import info.niwota.commons.Hotweb;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * @author qiangli
 *
 */
public class AccessLevelActivity extends Activity {

	private static final String TAG = "AccessLevelActivity";

	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	
	    try {
	    	InstallHotwebActivity.ensure(this);
	    	if (Debug.DEBUG) {
	    		Log.d(TAG, "onCreate" + savedInstanceState);
	    	}
	    	//
	    	Intent i = new Intent();
	    	i.setClassName("info.niwota.web", "info.niwota.web.app.AccessLevelActivity");
	    	String pkg = Hotweb.getPkgName(this);
	    	i.putExtra("extra.package", pkg);
	    	i.putExtra("extra.title", "Hotweb");
	    	startActivity(i);
	    } catch (Exception e) {
	    	if (Debug.DEBUG) {
	    		Log.d(TAG, e.getMessage());
	    	}
	    }
	    finish();
	}

}
